package geecache

import pb "geecache/geecachepb"
// PeerPicker is the interface that must be implemented to locate
// the peer that owns a specific key.
type PeerPicker interface{
	PickPeer(key string)(peer PeerGetter,ok bool)
	//根据传入的 key 选择相应节点 PeerGetter
}


// PeerGetter is the interface that must be implemented by a peer.
type PeerGetter interface{
	// Get(group string,key string)([]byte,error)
	Get(in *pb.Request,out *pb.Response)error
	//从对应 group 查找缓存值
}
